set RECEIVES_DEFAULT on init, and a button press on the widget doesn't
authorGeorge Lebl <jirka@5z.com>
Mon, 25 Jan 1999 19:05:58 +0000 (19:05 +0000)
committerGeorge Lebl <jirka@src.gnome.org>
Mon, 25 Jan 1999 19:05:58 +0000 (19:05 +0000)
commit4b8095d525c3d494a0013011445975eed006e628
tree4a141111cecba37f36051906a0be1b1e18c0500d
parent8ac2b1dda638008b9f71de224e28f2b01cfdd91c
set RECEIVES_DEFAULT on init, and a button press on the widget doesn't

Mon Jan 25 11:05:10 1999  George Lebl  <jirka@5z.com>

        * gtk/gtkbutton.c: set RECEIVES_DEFAULT on init, and a
          button press on the widget doesn't grab default anymore

        * gtk/gtkcheckbutton.c,gtk/gtkoptionmenu.c,gtk/gtkradiobutton.c:
          unset RECEIVES_DEFAULT on init

        * gtk/gtkwidget.[ch]: add a RECEIVES_DEFAULT flag to widget
          flags

        * gtk/gtkwindow.c,gtk/gtkplug.c: on pressing <enter>, activate
          the focused widget if it is a RECEIVES_DEFAULT widget,
          no matter what the current default_widget is

        * gtk/gtkwindow.c: on focus change, migrate the HAS_DEFAULT
          flag to CAN_DEFAULT widgets if they RECEIVE_DEFAULT as well
          or migrate it back to the default_widget if the focus widget
          doesn't "RECEIVE_DEFAULT"
15 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkbutton.c
gtk/gtkcheckbutton.c
gtk/gtkoptionmenu.c
gtk/gtkplug.c
gtk/gtkradiobutton.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwindow.c